package com.example.midushop.service.product.impl;

import com.example.midushop.entity.product.attr.SKU_Attr;
import com.example.midushop.mapper.product.attr.SKU_AttrMapper;
import com.example.midushop.service.product.SKU_AttrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品SKU规格属性服务接口实现类
 */
@Service
public class SKU_AttrServiceImpl implements SKU_AttrService {
    @Autowired
    SKU_AttrMapper sku_attrMapper;

    @Override
    public int addSKU_Attr(long sku_id) {
        return sku_attrMapper.addSKU_Attr(sku_id);
    }

    @Override
    public List<SKU_Attr> findSKU_Attr(long sku_id, long id) {
        return sku_attrMapper.findSKU_Attr(sku_id,id);
    }
}
